Haproxy route policy switch default db to postgresql#413
Haproxy route policy switch default db to postgresql#413Thanhphan1147 wants to merge 90 commits intomainfrom
Conversation
…al/haproxy-operator into haprox-route-policy-requests-api
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…al/haproxy-operator into haprox-route-policy-requests-api
| "NAME": BASE_DIR / "db.sqlite3", | ||
| } | ||
| "ENGINE": "django.db.backends.postgresql", | ||
| "PASSWORD": os.getenv("DJANGO_DATABASE_PASSWORD", ""), |
There was a problem hiding this comment.
Shouldn't it refuste to start without a password? What are the consequences of having PASSWORD as an empty string?
There was a problem hiding this comment.
I guess this would be useful in testing if we allow connecting to the DB without a password
There was a problem hiding this comment.
If we have a DB connection issue it'll be wrapped in a 500 HTTP error message using the middleware that we defined
There was a problem hiding this comment.
No db should be configured with no password, even in dev ;)
If we want to have a default value here, I'd use a generic one: "postgres" for instance.
seb4stien
left a comment
There was a problem hiding this comment.
Not sure about the default value for password.
Test results for commit 2b15ad8Test coverage for 2b15ad8 Static code analysis report |
Test results for commit 2b15ad8Test coverage for 2b15ad8 Static code analysis report |
Test results for commit 2b15ad8Test coverage for 2b15ad8 Static code analysis report |
Test results for commit 2b15ad8Test coverage for 2b15ad8 Static code analysis report |
…switch-default-db-to-postgresql
Switch the default db engine of the policy app to postgresql.
Added psycopg-binary as a dependency
Checklist
docs/release-notes/artifacts. If this PR does not require a change artifact, the PR has been tagged withno-release-note.urgent,trivial,complex)